package com.fh.controller.system.timer;

import com.fh.controller.building.bill.BillController;
import com.fh.dao.DaoSupport;
import com.fh.service.building.bill.BillService;
import com.fh.util.PageData;
import org.quartz.DisallowConcurrentExecution;
import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

/**
 * Created by caozengling on 2017/10/31.
 */
@DisallowConcurrentExecution
public class QuartzJobFactory implements Job {
    @Override
    public void execute(JobExecutionContext context) throws JobExecutionException {
//        System.out.println("任务成功运行");
        TimerControll aaa=new TimerControll();
        try {
            //List<Map<String,Object>> datas = (List<Map<String,Object>>)dao.findForList("BillMapper.billyuqimessage", "");

            //aaa.doPolling();
            //context.getFireInstanceId();
//            aaa.charge();//定时收费
        } catch (Exception e) {
            e.printStackTrace();
        }
        /*ScheduleJob scheduleJob = (ScheduleJob)context.getMergedJobDataMap().get("scheduleJob");
        System.out.println("任务名称 = [" + scheduleJob.getJobName() + "]");*/
    }
}